<template>
  <div class="home">{{ title }}</div>
</template>

<script lang="ts">
import { defineComponent, onMounted } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
export default defineComponent({
  setup() {
    const { t } = useI18n();
    const router = useRouter();
    const route = useRoute();
    onMounted(() => {
      if (route.fullPath === "/") {
        router.push({ path: "/meter" });
      }
    });
    return {
      title: t("Home"),
    };
  },
  unmounted() {},
  components: {},
});
</script>

<style lang="scss" scoped>
.el-header {
  padding: 0;
}
.el-footer {
  padding: 0;
  height: auto;
}
.el-aside {
  width: auto;
}
.home {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
</style>
